package com.chatdating.mapper;

import com.chatdating.entity.ChatMessage;
import com.chatdating.entity.pojo.ChatMessages;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
public interface ChatMessageMapper {

    /**
     * 会话id 和 自己的名称
     * @param sessionid
     * @return
     */
    @Transactional
    List<ChatMessage> queryChatMessage(@Param("sessionId") String sessionid);

    int insert (ChatMessages chatMessages);
}
